const mongoose = require("./db");

const userSchema = new mongoose.Schema({
  username: String,
  password: String,
  phone: Number,
  email: String,
  avatar: String,
  welcome: String,
  role: String,
  create_time: { type: Date, default: Date.now },
  update_time: { type: Date, default: Date.now },
});

const userModel = mongoose.model("user", userSchema, "user");

module.exports  = {
  userModel
};
